﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Longbow.Service
{
	public class ServiceFactory<T> : IServiceFactory
		where T: IService, new()
	{
		private T serice = default(T);

		public static ServiceFactory<T> Create()
		{
			return new ServiceFactory<T>();
		}


		#region IServiceFactory member

		public IService GetService()
		{
			return new T();
		}

		#endregion
	}
}
